-
-
Notifications
You must be signed in to change notification settings - Fork 68
feat(core): devtools config #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a DevTools configuration system to the core package, moving configuration handling from the Vite DevTools package. This enables better type safety by avoiding Vite type overrides and allows proper configuration of the clientAuth setting.
Changes:
- Adds a new
isObjectutility function for type checking - Introduces DevToolsConfig interfaces and a normalization function for handling various config input types
- Exports the new config types and functions from the core package
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| packages/core/src/node/utils.ts | Adds isObject type guard utility function for runtime object detection |
| packages/core/src/node/config.ts | Defines DevToolsConfig interfaces and normalizeDevToolsConfig function to handle config normalization |
| packages/core/src/index.ts | Exports the new config types and functions from the package |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
43464a6 to
c01e3fb
Compare
c01e3fb to
84f313a
Compare
Since Vite 8 beta.13 ships with Vite DevTools (see: vitejs/vite#21331), this PR moves the config to the core repo for better flexibility. We can now drop the Vite type overrides (see: https://github.com/vitejs/devtools/blob/main/packages/kit/src/types/vite-augment.ts#L5) to fix the
clientAuthconfig setting and typecheck CI. /cc @sapphi-red